<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/context/mytags.jsp"%>
<t:base type="jquery,easyui,tools,DatePicker"></t:base>

  <t:datagrid name="fileReportList" title="文档列表" actionUrl="fileReportController.do?datagrid" idField="id" fit="true"  fitColumns="true" queryMode="group" >
   <t:dgCol title="文件id" field="id"  hidden="false" ></t:dgCol>
   <t:dgCol title="文件名称" field="fileName" ></t:dgCol>
   <t:dgCol title="创建日期" field="createDate"></t:dgCol>
   <t:dgCol title="路径" field="filePath" hidden="false"></t:dgCol>
   <t:dgCol title="操作" field="opt"></t:dgCol>
   <t:dgFunOpt funname="viewFile(filePath,fileName,url)" title="预览"></t:dgFunOpt>
  </t:datagrid>
 
 
<script>
    function viewFile(filePath,fileName,fileNameurl){
       console.log(filePath);
       url = 'fileReportController.do?openViewFile&filePath=' + filePath + '&fileName=' +  fileName;
     //  alert(url);
       openwindow('预览',url,'fList','2000','1000');
    }

</script>